package org.uu.enums;

/**
 * 4 read
 * 2 write; read add update
 * 1 delete; read delete
 * 7 all;  7(4+2+1)
 */
public enum RoleEnum {
    READ("read",4), WRITE("write",2), DELETE("delete", 1),All("read+write+delete",7);

    private String opter;
    private int i;
    RoleEnum(String opter, int i) {
        this.i = i;
        this.opter = opter;
    }

    public String getOpter() {
        return opter;
    }

    public int getI() {
        return i;
    }
}
